package com.zlp.boot1.convert;

import com.zlp.boot1.entity.UserDto;
import com.zlp.boot1.entity.UserVo;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.Mappings;
import org.mapstruct.factory.Mappers;

/**
 * @author zhulaiping
 * @date 2021/6/20-19:44
 */
@Mapper
public interface UserConvert {
   UserConvert instance = Mappers.getMapper(UserConvert.class);


   /* @Mappings(
            //@Mapping(source = "dtoList",target = "voList")
            @Mapping(source = "roleDto",target = "roleVo")
    )*/
    UserVo toUserVo(UserDto dto);
}
